projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b47cd6
)
Avoid spare reset on OSX.
author
robertl
<robertl>
Thu, 2 Dec 2004 03:39:34 +0000
(
03:39
+0000)
committer
robertl
<robertl>
Thu, 2 Dec 2004 03:39:34 +0000
(
03:39
+0000)
jeeps/gpslibusb.c
patch
|
blob
|
history
diff --git
a/jeeps/gpslibusb.c
b/jeeps/gpslibusb.c
index 37a7fe055a0a010a7661b49220a023de560fff89..6d5a6fc32b29c303372b1a21f6d907afba136438 100644
(file)
--- a/
jeeps/gpslibusb.c
+++ b/
jeeps/gpslibusb.c
@@
-138,9
+138,16
@@
garmin_usb_start(struct usb_device *dev)
if (udev) return;
+ /*
+ * Linux _requires_ the reset. OSX doesn't work if we DO reset it.
+ * I really should study this more, but for now, we'll just avoid the
+ * reset on Apple's OSX.
+ */
+#if !defined (__APPLE__)
udev = usb_open(dev);
usb_reset(udev);
usb_close(udev);
+#endif /* APPLE */
udev = usb_open(dev);
atexit(garmin_usb_teardown);